Skip to content

Elixir 1.19 Compatibility and Test Fixes#277

Open
nyo16 wants to merge 3 commits intoakoutmos:masterfrom
nyo16:small_fixes
Open

Elixir 1.19 Compatibility and Test Fixes#277
nyo16 wants to merge 3 commits intoakoutmos:masterfrom
nyo16:small_fixes

Conversation

@nyo16
Copy link
Copy Markdown

@nyo16 nyo16 commented Dec 7, 2025

Change description

Move preferred_cli_env from project/0 to new cli/0 function using preferred_envs key

  • Bump absinthe to >= 1.8.0 (was >= 1.7.0)
  • Bump credo to ~> 1.7.14 (was ~> 1.7.7)
  • Increase Grafana Agent downloader test timeouts

What problem does this solve?

Fixes compatibility issues with Elixir 1.19:

  • preferred_cli_env in project/0 was deprecated in Elixir 1.15
  • absinthe 1.7.x fails to compile with Elixir 1.19
  • credo 1.7.7 has a regex compilation error with Elixir 1.19
  • Grafana Agent downloader tests were timing out due to large file downloads (~56MB per binary)
    Issue number: (if applicable)
    N/A

Example usage

N/A - internal fixes only

Additional details and screenshots

Checklist

  • I have added unit tests to cover my changes.
  • I have added documentation to cover my changes.
  • My changes have passed unit tests and have been tested E2E in an example project.

nyo16 added 3 commits December 7, 2025 05:29
The :preferred_cli_env option in def project was deprecated in Elixir
1.15 in favor of :preferred_envs in a new def cli function.
- absinthe >= 1.8.0 (was >= 1.7.0) - fixes compilation error with Elixir 1.19
- credo ~> 1.7.14 (was ~> 1.7.7) - fixes regex compilation error with Elixir 1.19
The tests download large binaries (~56MB each) from GitHub which can
take significant time on slower connections. Updated timeouts:
- Task.await: 3 minutes (was 10 seconds)
- Single download tests: 3 minutes
- All versions test: 10 minutes (downloads 5 files ~280MB total)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant